package com.yyp.car.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.hdw.basic.dao.BaseDao;
import com.yyp.car.Idao.IGroundDao;
import com.yyp.car.model.Ground;

@Repository("groundDao")
public class GroundDao extends BaseDao<Ground> implements IGroundDao{

	@Override
	public List<Ground> listGround() {
		String hql="from Ground order by id asc";
		return this.list(hql);
	}

	@Override
	public Ground findGroundByid(int id) {
		String hql="from Ground g where g.id='"+id+"'";
		return (Ground)this.queryObject(hql);
	}

}
